﻿<?xml version="1.0" encoding="utf-8" ?>
<ListCommand>
  <!--
  
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  WSS LIST ScrumTable_Iterations
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  
  FIELD         DESCRIPTION
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Title         Specifies the name of the referenced TFS iteration.
  ID            ID of a WssIteration row entry.
  StartDate     Specifies the iteration start date.
  EndDate       Specifies the iteration end date.
  TfsId         Specifies id of the referenced TFS iteration in the Iteration table.
  TfsMdxId      Specifies id of the referenced TFS iteration in the MDX data warehouse.
  
  -->

  <!-- see http://msdn.microsoft.com/en-us/library/lists.lists.updatelist.aspx -->
  <Create>
    <ListProperties>
      <List
          AllowMultiResponses="FALSE"
          Direction="LTR"
          EnableAssignedToEmail="FALSE"
          EnableAttachments="FALSE"
          EnableModeration="FALSE"
          EnableVersioning="FALSE"
          Hidden="TRUE"
          MultipleDataList="FALSE"
          Ordered="FALSE"
          ShowUser="FALSE" />
    </ListProperties>

    <NewFields>
      <Fields>
        <Method ID="1">
          <Field ReadOnly="FALSE" Type="DateTime" PrimaryKey="FALSE" DisplayName="StartDate" FromBaseType="FALSE">
            <Default>[today]</Default>
            <DefaultFormulaValue>2010-03-18T00:00:00Z</DefaultFormulaValue>
          </Field>
        </Method>
        <Method ID="2">
          <Field ReadOnly="FALSE" Type="DateTime" PrimaryKey="FALSE" DisplayName="EndDate" FromBaseType="FALSE">
            <Default>[today]</Default>
            <DefaultFormulaValue>2010-03-18T00:00:00Z</DefaultFormulaValue>
          </Field>
        </Method>
        <Method ID="3">
          <Field ReadOnly="FALSE" Type="Text" PrimaryKey="FALSE" DisplayName="TfsMdxId" FromBaseType="FALSE" MaxLength="255" />
        </Method>
        <Method ID="4">
          <Field ReadOnly="FALSE" Type="Text" PrimaryKey="FALSE" DisplayName="TfsId" FromBaseType="FALSE" MaxLength="255" />
        </Method>
      </Fields>
    </NewFields>

    <UpdateFields>
      <Fields>
        <Method ID="5">
          <Field Type="Text" Name="Title" DisplayName="Iteration" Required="FALSE" FromBaseType="TRUE" MaxLength="255" />
        </Method>
      </Fields>
    </UpdateFields>

    <DeleteFields>
      <Fields>
      </Fields>
    </DeleteFields>
  </Create>

  <!-- new items -->
  <Add>
    <Batch OnError="Continue" PreCalc="TRUE" ListVersion="" ViewName="">
      <Method ID="1" Cmd="New">
        <Field Name="ID">New</Field> 
        <Field Name="StartDate"></Field>
        <Field Name="EndDate"></Field>
        <Field Name="Title"></Field>
        <Field Name="TfsMdxId"></Field>
        <Field Name="TfsId"></Field>
      </Method>
    </Batch>
  </Add>

  <!-- update an existing item -->
  <Update>
    <Batch OnError="Continue" PreCalc="TRUE" ListVersion="" ViewName="">
      <Method ID="1" Cmd="Update">
        <Field Name="ID"></Field>
        <Field Name="StartDate"></Field>
        <Field Name="EndDate"></Field>
        <Field Name="Title"></Field>
        <Field Name="TfsMdxId"></Field>
        <Field Name="TfsId"></Field>
      </Method>
    </Batch>
  </Update>

  <!-- get all existing items -->
  <Get>
    <ViewFields>
      <FieldRef Name="ID" />
      <FieldRef Name="StartDate" />
      <FieldRef Name="EndDate" />
      <FieldRef Name="Title" />
      <FieldRef Name="TfsMdxId" />
      <FieldRef Name="TfsId" />
    </ViewFields>
  </Get>
</ListCommand>